package com.yingxin.yxerp.module.organization.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yingxin.yx.framework.mybatisplus.common.CommonEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 部门负责人
 * </p>
 *
 * @author fanchao
 * @since 2021-11-16
 */

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_department_mgr")
public class DepartmentMgr extends CommonEntity {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    /**
     * 部门id
     */
    private String deptId;

    /**
     * 主管id
     */
    private String managerId;

    /**
     * 删除标记：0 正常 1 已删除
     */
    @TableLogic
    private String delFlag;

    public DepartmentMgr() {

    }

    public DepartmentMgr(String deptId, String managerId) {
        this.deptId = deptId;
        this.managerId = managerId;
    }

}
